
package com.eworking.eim.group;

public class EIMGroupChangeEvent {
    
    /** 群组ID */
    protected String groupId;
    
    /** 群组名称 */
    protected String groupName;
    
    /** 邀请人 */
    protected String inviter;
    
    /** 原因 */
    protected String reason;
    
    /** 类别 */
    protected GroupEventType type;
    
    public EIMGroupChangeEvent(GroupEventType groupEventType, String groupId, String groupName, String inviter,
        String reason) {
        this.type = groupEventType;
        this.groupId = groupId;
        this.groupName = groupName;
        this.inviter = inviter;
        this.reason = reason;
    }
    
    public static enum GroupEventType {
        Invitate, Apply, ApplicationAccept, ApplicationDeclind;
    }
}
